Post not yet marked as solved
Yes, with you decoded (the one you decoded from the userDefaults)
`selectionToBlock = savedBlockers()
You set the decoded data as the FamilyActivitySelection
Post not yet marked as solved
The extension and the application are different processes so:
They are 2 different instances because each one "lives" on a different process .
You can use a shared userDefaults or any other persistency (you can share a database file and change it in one process and read from the other)
Read this:
[https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html)
Good luck
Post not yet marked as solved
For me, this was happening when I run tests.
Eventually after looking at the spin dump I discovered some issue with one of the pods I was using (With Cocoapods)
removing that pod solved the issue
Post not yet marked as solved
OK, its just dark mode ;)
Sorry
Post not yet marked as solved
Same here, its been a month.
did anyone get a reply?
Post not yet marked as solved
@kmart Thanks for the reply but I do see apps that have managed to change the background of the picker. attaching screenshot
Post not yet marked as solved
Can you open a stackoverflow question or better explain your issue?
Post not yet marked as solved
Can you open a stackoverflow question or better explain your issue?
These are all codable so you can just do this:
var selectionToDiscourage: FamilyActivitySelection
if let encoded = try? JSONEncoder().encode(self.selectionToDiscourage) {
UserDefaults.standard.set(encoded, forKey: defaultsRestrictionsKey)
}
Post not yet marked as solved
Hi Eskimo,
I see that on iOS 15 with a network extension -displayMessage:completionHandler: has stopped working.
It was working fine on iOS 14.
It's marked as deprecated, I get this fix suggestion on Xcode:
'displayMessage(_:completionHandler:)' was deprecated in iOS 12.0: renamed to 'UILocalNotification'
Can you confirm?
Sounds like there is no alternative? (I guess that the fix suggestion that Xcode gives - "use UILocalNotification" is not correct)
Post not yet marked as solved
You should add the code for "deleteConversion", otherwise it will very hard to help you
Post not yet marked as solved
Thank you, Matt!
And what will happen if I remove the "old" network extension identifier and the app group identifier from the "old" developer account - Add them to the new developer account - everything should be the same on the app (same group and same extension identifiers under the new account)
This will actually mean that the possible issue of 2 network extensions is gone, right?
Post not yet marked as solved
Have you tried closing and re-opening Xcode?
Restarting Xcode solved this issue for me.